/**
* @author maze | guavestudios.com
* @license MIT License see LICENSE.TXT
* @version 0.1
*/
package com.guavestudios.fcon.commands {
	import flash.display.DisplayObjectContainer;

	import com.guavestudios.fcon.api.*;

	public class TestCommand implements INamedCommand{
		
		private var test:String="juhu";
		public var test1:String="jajaj";
		public function TestCommand() {
			
		}
		public function execute(args:Array):void
		{
			/*
			var c:Console=Console(args[0]);
			var dis:DisplayObjectContainer=c.parent;
			
			var s:String=args[1];
			var a:Array=s.split(".",10);
			
			var dist:String="";
			
			try {
				var d:DisplayObjectContainer=dis;
				for (var i:int; i<a.length; i++)
				{
					var pn:int=parseInt(a[i]);
					c.outputText(pn.toString());
					if (String(a[i]).charAt(0)=="@") 
					{
						c.outputText(" val: "+d[String(a[i]).substring(1)]);
						break;
					}
					d=DisplayObjectContainer(d.getChildAt(pn));
					c.outputText(dist+d.name);
					dist+="  ";
				}
			}
			catch(e:RangeError)
			{
				c.outputText("No element found: "+e.getStackTrace());
			}
			catch (e:Error)
			{
				c.outputText("Uncaught Error: "+e.toString());
				c.outputText(e.getStackTrace());
			}
			*/
			//c.outputText("Childeren of: "+dis.name);
			//for (var i:int=0; i<dis.numChildren; i++)
			//	c.outputText("  "+dis.getChildAt(i).name);
				
		}
		public function getCommandName():String
		{
			return "test";
		}
	}
	
}
